package org.snail.employee.bean;

import lombok.Data;
import lombok.ToString;
import org.snail.excel.annotation.ExcelBean;
import org.snail.excel.annotation.ExcelColumn;

import java.util.Date;

@ToString
@ExcelBean
public class EmployeesPhoneDO {
    //主表id
    private Integer id;
    //副表id
    private Integer viceId;
    //员工UserID
    @ExcelColumn(name = "dingId", position = 0, columnName = "员工UserID")
    private String dingId;
    //姓名
    @ExcelColumn(name = "name", position = 1, columnName = "姓名")
    private String name;
    //手机号
    @ExcelColumn(name = "phone", position = 2, columnName = "手机号")
    private String phone;
    //工号
    @ExcelColumn(name = "workNum", position = 5, columnName = "工号")
    private String workNum;
    //邮箱
    @ExcelColumn(name = "phone", position = 7, columnName = "邮箱")
    private String email;
    //外包工号
    @ExcelColumn(name = "outNum", position = 14, columnName = "外包工号")
    private String outNum;
    //创建人
    private String createBy;
    //创建时间
    private Date createTime;
    //修改人
    private String updateBy;
    //修改时间
    private Date updateTime;
    //是否删除
    private int isDel;
    //状态
    private Integer state;

    public EmployeesPhoneDO(){

    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getViceId() {
        return viceId;
    }

    public void setViceId(Integer viceId) {
        this.viceId = viceId;
    }

    public String getDingId() {
        return dingId;
    }

    public void setDingId(String dingId) {
        this.dingId = dingId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getWorkNum() {
        return workNum;
    }

    public void setWorkNum(String workNum) {
        this.workNum = workNum;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getOutNum() {
        return outNum;
    }

    public void setOutNum(String outNum) {
        this.outNum = outNum;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public int getIsDel() {
        return isDel;
    }

    public void setIsDel(int isDel) {
        this.isDel = isDel;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof EmployeesPhoneDO)) return false;

        EmployeesPhoneDO that = (EmployeesPhoneDO) o;

        if (getDingId() != null ? !getDingId().equals(that.getDingId()) : that.getDingId() != null) return false;
        if (getName() != null ? !getName().equals(that.getName()) : that.getName() != null) return false;
        if (getPhone() != null ? !getPhone().equals(that.getPhone()) : that.getPhone() != null) return false;
        if (getWorkNum() != null ? !getWorkNum().equals(that.getWorkNum()) : that.getWorkNum() != null) return false;
        if (getEmail() != null ? !getEmail().equals(that.getEmail()) : that.getEmail() != null) return false;
        return getOutNum() != null ? getOutNum().equals(that.getOutNum()) : that.getOutNum() == null;

    }

    @Override
    public int hashCode() {
        int result = getDingId() != null ? getDingId().hashCode() : 0;
        result = 31 * result + (getName() != null ? getName().hashCode() : 0);
        result = 31 * result + (getPhone() != null ? getPhone().hashCode() : 0);
        result = 31 * result + (getWorkNum() != null ? getWorkNum().hashCode() : 0);
        result = 31 * result + (getEmail() != null ? getEmail().hashCode() : 0);
        result = 31 * result + (getOutNum() != null ? getOutNum().hashCode() : 0);
        return result;
    }
}